import { mockRequest } from '../request';
/**
 * 获取文章列表
 */
export function articleGetList() {
  return mockRequest.post<ApiArticle.Article[]>('/getArticleList');
}

/**
 * 删除文章
 */
export function articleDelete(article_id: number) {
  return mockRequest.post<boolean>('/articleDelete', { article_id });
}

/**
 * 获取文章分类
 */
export function channelGetList() {
  return mockRequest.post<ApiArticle.Channel[]>('/getChannelList');
}

/**
 * 删除文章分类
 */
export function channelDel(channel_id: string) {
  return mockRequest.post<boolean>('/channelDel', {
    channel_id
  });
}
